import React, {Component} from "react";
import {
	View,
	Text,
	WebView,
	ActivityIndicator,
} from "react-native";

export default class NewsDetails extends Component {
	static navigationOptions = {
		title: "新闻详情",
	}
	constructor(props) {
		super(props);
	}
	render() {
		const {state} = this.props.navigation;
		return (
			<View style={{flex: 1,}}>
				<WebView 
					source={{ uri: state.params.details }}
					style={{width: gScreen.width, height: gScreen.height}}
					startInLoadingState={true}
					renderLoading={() => <ActivityIndicator color={gColor.bgColorOne} size="small" />}
				/>
			</View>
		)
	}
}